package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.qhse;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyDrill;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyPlan;

import java.util.List;

public interface ContingencyDrillMapper {
    /**
     *根据ids删除应急演练
     * @param contingencyDrillId
     * @return
     */
    int deleteByPrimaryKey(String contingencyDrillId);

    /**
     * 新增应急演练
     * @param record
     * @return
     */
    int insertSelective(ContingencyDrill record);

    /**
     * 根据id查询
     * @param contingencyDrillId
     * @return
     */
    ContingencyDrill selectByPrimaryKey(String contingencyDrillId);

    /**
     * 根据id更新应急演练
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ContingencyDrill record);

    /**
     * 总条数
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 查询应急演练列表
     * @param bootstrapSearchBean
     * @return
     */
    List<ContingencyPlan> queryList(BootstrapSearchBean bootstrapSearchBean);
    /**
     * 判断应急演练名是否存在
     * @param drillName 应急演练名
     * @return
     */
    int  isExitByName(String drillName);
}